//
//      Copyright 2011 Hengda Xiao 224080
//
//      Millionare
//
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//
//      04.05.2011



#include "gamesystem.h"
#include "gameplay.h"




int main(int ,char *argv[])
{
    try{
      if(argv[1] == NULL || argv[2] != NULL){
          cout << "\nInvalid input file!" << endl;
          cout << "Check the file name you put in the command line!" << endl;
          cout << "Now Exit...\n" << endl;
          //return 0;
          throw argv[1];
      }
    }
    catch(char *str)
    {
      return 0;
    }
    GamePlay *game = new GamePlay(argv);
    delete game;
    game = NULL;
    return 0;
}
